/**
 * 
 */
package com.shunwang.io.stream;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

import junit.framework.TestCase;

/**
 * @author ljw
 *
 */
public class FileInputStreamReaderTest extends TestCase {

	public void testRead() throws IOException{
		FileInputStream fis = new FileInputStream("d:/aaaa/test/1.txt");
		InputStreamReader reader = new InputStreamReader(fis);
		char[] bytes = new char[5];
		long begin = System.currentTimeMillis();
		for(int i=0;i<1000000;i++){
			reader.read(bytes);
		}
		System.out.println("readInputStream cost time:"+(System.currentTimeMillis() - begin));
	}
}
